package com.yunjijia.service.impl;

import com.yunjijia.mapper.UserMapper;
import com.yunjijia.pojo.User;
import com.yunjijia.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TestServiceImpl implements ITestService {

    @Resource
    private UserMapper userMapper;


    @Override
    public User selectUserByid(String id) {
        User user = userMapper.selectByPrimaryKey(id);
        return user;
    }
}
